<?php /* @var $obj TreeLng */ ?>
<div>
<?php if($sf_flash->has('success')):?>
    <?php echo __($sf_flash->get('success')); ?>
<?php endif; ?>
</div>
<?php echo form_tag(
        'tree/meta'
        )?>
<?php echo input_hidden_tag(
            'id'
            , $obj->getId())?>
<div>
    <?php echo label_for('meta_title', __('Title for meta information') . ' (' . __('recomended MAX length') . ': ' . Tree::META_TITLE . ')')?>:
    <?php echo input_tag(
                    'meta_title'
                    , $obj->getMetaTitle()
                    , array(
                        'class' => ''
                    ))
    ?>
</div>
<div>
    <?php echo label_for('meta[description]', __('Description for meta information') . ' (' . __('recomended MAX length') . ': ' . Tree::META_DESCRIPTION . ')')?>:
    <?php echo input_tag(
                    'meta[description]'
                    , isset($meta['description'])?$meta['description']:''
                    , array(
                        'class' => ''
                    ))
    ?>
</div>
<div>
<?php echo label_for('meta[keywords]', __('Keywords for meta information'))?>:
<?php echo input_tag(
                'meta[keywords]'
                , isset($meta['keywords'])?$meta['keywords']:''
                , array(
                    'class' => ''
                ))
?>
</div>
<div>
    <?php echo submit_tag(
            __('save changes')
            , array(
                'class' => ''
            ))?>
            
    <?php echo link_to(
                __('To edited page')
                , 'tree/page?id=' . $obj->getId()
                )?>
</div>
</form>